<!DOCTYPE html>
<html>
<meta charset="utf-8">
<title>统计分析</title>
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<script src="/js/theme/jquery-1.9.1.min.js"></script>
<script src="/js/theme/FileSaver.js"></script>
<script src="/js/theme/xlsx.full.min.js"></script>
<script src="/js/layer/layer.js"></script>

<script src="/js/common.js?t=20250804"></script>

<script src="/js/cert/setting.js??t=20250804"></script>
<script src="/js/cert/detail_setting.js??t=20250804"></script>
<script src="/js/cert/cert_type.js??t=20250804"></script>
<script src="/js/cert/cert_gen.js??t=20250804"></script>


<script src="/js/base.data.info.js?t=20250804"></script>
<script src="/js/my.data.handler.js?t=20250804"></script>
<script src="/js/cert.data.handler.js?t=20250804"></script>

<script src="js/data.info.js??t=20250804"></script>
<script src="js/my.data.js??t=20250804"></script>
<script src="js/cert.data.js??t=20250804"></script>
<script src="js/query.data.js?t=20250804"></script>

<script src="/js/cert/query.js??t=20250804"></script>


<link rel="stylesheet" href="/css/common.css" type="text/css">

<head>

    <style>

    .title {
      border-bottom: 1px solid #333333;
      padding: 10px;
      margin-bottom: 5px;
    }


    body {
      bottom: 10px;
      position: absolute;
      top: 10px;
      left: 10px;
      right: 10px;
      overflow: hidden;
      margin: 0px;
    }

    .div-query > div {
      float: left;
      margin-left: 20px;
      margin-bottom: 10px
    }

    .div-query span {
      display: inline-block;
      width: 75px
    }

    .div-query select {
      min-width: 200px;
    }

    .div-result {
      overflow: auto;
      border-bottom: 1px solid #666666;
    }

  </style>


</head>
<body>

<div class="title">
    <span>数据导出</span>
    <button onclick="history.back(-1)">返回</button>
</div>
<div class="div-result">
    <table class="gridtable" id="awardsList">
        <thead>
            <tr>
                <th style="width: 300px;">名称</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
        <tr>
            <td>获奖清单</td>
            <td><button  class="btn-gen" gdata="awards" mode="" >下载</button></td>
        </tr>
        <tr>
          <td>获奖清单(个人)</td>
          <td><button  class="btn-gen" gdata="studentAwards" mode="" >下载</button></td>
        </tr>       
        <tr>
          <td>参赛个人获奖情况</td>
          <td>
            <button  class="btn-gen" gdata="student" mode="" >下载</button>
          </td>
          
        </tr>
        
        </tbody>
    </table>
</div>
<script>
  function genExcel(type,mode) {
    layer.msg("生成中,请稍等......",{time:30000});
    switch (type) {
      case "awards" :{ //全国及区域获奖清单
        QueryData.genAwards();
        break;
      }
      case "studentAwards" :{ 
        QueryData.genStudentAwards();
        break;
      }
      case "student" :
      QueryData2.genStudentExcel(mode);
        break;      
    }
  }
  $(function () {
    let dataType = CertData.getType();
    $(".td-"+dataType).show();
    $("#awardsList").on("click",".btn-gen",function (e) {
      let data = $(this).attr("gdata");
      let mode = $(this).attr("mode");
      genExcel(data,mode);
    });

  })
</script>
</body>
</html>



